[@b.head/]
<script charset="utf-8" src="${base}/static/kindeditor/kindeditor-all-min.js"></script>
[@b.toolbar title="发送邮件"]
	bar.addBack();
[/@]
[#if noneMailStudents?size>0]
<label>以下${noneMailStudents?size}个学生没有邮箱,请编辑电子邮箱信息后发送.</label><br>
     [#list noneMailStudents as student]
       ${student.name}[#if student_has_next],[/#if]
     [/#list]
<hr>
[/#if]

[#if students?size>0]
[@b.form action="!sendMail" name="mailForm" theme="list"]
   [@b.field label="收件人"]
     [#list students as student]
       ${student.name}&lt;${student.email}&gt;[#if student_has_next],[/#if]
     [/#list]
   [/@]
   [@b.textarea name="subject" label="标题" required="true" rows="1" cols="80"/]
   [@b.textarea name="text" label="正文" cols="100"  rows="20" theme="kind" maxlength="2000"/]
   [@b.formfoot]
     [#list students as student]
       <input type="hidden" name="student.id" value="${student.id!}" />
     [/#list]
     [@b.submit value="发送" class="btn btn-default"/]
   [/@]
[/@]
[/#if]
[@b.foot/]